package com.tms.mapper.develop;

import com.tms.domain.User;
import com.tms.domain.Workcell;
import com.tms.domain.index.UserInfo;
import com.tms.security.entity.UserDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    UserDetail selectForUserDetailByNo(String no);

    void deleteByNo(@Param(value = "no") String no, @Param(value = "workcellId") int workcellId);

    int insertSelective(User record);

    User selectById(int id);

    User selectByPrimaryKey(@Param(value = "no") String no, @Param(value = "workcellId") int workcellId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectByWorkcell(Workcell workcell);

    User selectByPrimaryKeyOfStaff(int id);

    List<UserInfo> selectPositionNum();

    int selectAll();
}